import request from '@/utils/request'

// 查询广告弹窗列表
export function listPop(query) {
  return request({
    url: '/advertising/pop/list',
    method: 'get',
    params: query
  })
}

// 查询广告弹窗详细
export function getPop(id) {
  return request({
    url: '/advertising/pop/' + id,
    method: 'get'
  })
}

// 新增广告弹窗
export function addPop(data) {
  return request({
    url: '/advertising/pop',
    method: 'post',
    data: data
  })
}

// 修改广告弹窗
export function updatePop(data) {
  return request({
    url: '/advertising/pop',
    method: 'put',
    data: data
  })
}

// 删除广告弹窗
export function delPop(id) {
  return request({
    url: '/advertising/pop/' + id,
    method: 'delete'
  })
}
